<?php
namespace App\Utility\Pool;


use EasySwoole\Component\Pool\AbstractPool;
use EasySwoole\EasySwoole\Config;

class MysqlPool extends AbstractPool
{

    protected function createObject()
    {
        // TODO: Implement createObject() method.
        $conf = Config::getInstance()->getConf( 'MYSQL' );

        $dbConf = new \EasySwoole\Mysqli\Config( $conf );

        return new MysqlPoolObject( $dbConf );
    }
}